package DoubleLists;

public class Text {
    public static void main(String[] args) {
        MyDoubleLists myLists = new MyDoubleLists();
        myLists.addLast(1);
        myLists.addLast(2);
        myLists.addLast(3);
        myLists.addLast(4);
        myLists.addLast(5);
        myLists.addLast(6);
        myLists.removeLast();
        for (Integer myList : myLists) {
            System.out.println(myList);
        }
        System.out.println("------------------------");
        System.out.println(myLists.get(4));
/*        for (Integer myList : myLists) {
            System.out.println(myList);
        }
        System.out.println("------------------------------");
        myLists.insert(6,11);
        for (Integer myList : myLists) {
            System.out.println(myList);
        }
        myLists.remove(6);
        System.out.println("------------------------------");
        for (Integer myList : myLists) {
            System.out.println(myList);
        }

        System.out.println("---------------------------------");
        System.out.println(myLists.get(5));
        System.out.println("---------------------------------");*/
        //myLists.removeFirst();
        //myLists.removeLast();
        //myLists.remove(5);


/*        myLists.insert(7,4);
        for (Integer myList : myLists) {
            System.out.println(myList);
        }*/


/*        myLists.addLast(1);
        myLists.addLast(2);
        myLists.addLast(3);
        myLists.addLast(4);
        myLists.addLast(5);
        myLists.addLast(6);
        for (Integer myList : myLists) {
            System.out.println(myList);
        }*/

/*        MyDoubleLists myLists = new MyDoubleLists();
        myLists.addFirst(1);
        myLists.addFirst(2);
        myLists.addFirst(3);
        myLists.addFirst(4);
        myLists.addFirst(5);
        myLists.addFirst(6);
        for (Integer myList : myLists) {
            System.out.println(myList);
        }*/
    }

}
